package com.kg.module.jtnc.nzffthgl.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
import java.time.LocalDateTime;
import com.kg.core.base.dto.BaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;


/**
 * <p>
 * 农资发放或退还管理
 * </p>
 *
 * @author xxx
 * @since 2024-11-02
 */
@Getter
@Setter
@ApiModel(value = "KrNzffthglDTO", description = "农资发放或退还管理")
public class KrNzffthglDTO implements BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    private String nzffId;

    @ApiModelProperty("种植计划ID")
    private String zzjhId;

    @ApiModelProperty("领用/退还单号")
    private String dh;

    @ApiModelProperty("地块id")
    @NotBlank(message = "地块id不能为空")
    private String dkglId;

    @ApiModelProperty("地块名称")
    private String dkmc;

    @ApiModelProperty("农户id")
    private String nhId;

    @ApiModelProperty("农户姓名")
    private String nhxm;

    @ApiModelProperty("农资id")
    private String nzId;

    @ApiModelProperty("农资名称")
    private String nzmc;

    @ApiModelProperty("农资数量")
    private Integer nzsl;

    @ApiModelProperty("农资管理员用户id")
    private String nzglyUserId;

    @ApiModelProperty("农资管理员姓名")
    private String nzglyxm;

    @ApiModelProperty("状态（0：未确认，1:已确认，2:已拒绝）")
    private String state;

    @ApiModelProperty("领用/退还时间")
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    @ApiModelProperty("类型（1：发放，2:退还）")
    private String type;

    @ApiModelProperty("单位")
    private String unit;

    @ApiModelProperty("单价")
    private String dj;
}
